<link rel="stylesheet" href="/Css/ui-lightness/jquery-ui-1.10.4.custom.css" />

<script type="text/javascript" src="/Js/jquery-ui-1.10.4.custom.js"></script>

<script type="text/javascript" src="/Js/ZeroClipboard.js"></script>
<script type="text/javascript" src="/Js/jquery.form.js"></script>
<script type="text/javascript" src="/Js/common.js"></script>
<script type="text/javascript" src="/Js/adm/task/batch_order_list.js"></script>
    <div class="navigate">
		<h1>订单列表</h1>

            <span class="ui-button ui-button-morange fr">
                    <a class="ui-button-text fr" href="/index.php/Admin/Task/">任务列表</a>
            </span>
  	</div>


	<!-- 汇总 -->
	<div id="div_summary" task_id="{$task.task_id}">

	</div>
	<!-- 汇总 -->

<!-- 备注 -->
<div id="div_comment" class="explain-col">

    <form id="form_task_log" action="/index.php/Admin/Task/task_log_add" method="post">
        <table>
            <tr>
                <td>备注:</td>
                <td>


                    <textarea name="message" id="message" rows="1" cols="70"></textarea>
                    <span class="color-red" title="必填">*</span>


                </td>
                <td>
                    <div class="ui-button ui-button-sorange">
                        <input type="submit" class="ui-button-text" value="提交" />
                    </div>

                    <input type="hidden" name="task_id" id="task_id" value="{$task.task_id}" />
                </td>
                <td>
                    <if condition="$task_logs_count gt 1">
                        <div class="ui-button ui-button-sorange">
                            <input type="button" class="ui-button-text" value="显示更多(共{$task_logs_count}条)" id="btnShowComment" />
                        </div>
                        <div class="ui-button ui-button-sorange" style="display: none !important;">
                            <input type="button" class="ui-button-text" value="隐藏更多(共{$task_logs_count}条)" id="btnHideComment" />
                        </div>
                    </if>
                </td>
            </tr>
        </table>
    </form>


    <table id="table_task_log" cellpadding="2" cellspacing="1" class="table-list">
        <tr>

            <th style="width:80px;">序号</th>
            <th style="width:200px;">内容</th>
            <th style="width:80px;">管理员</th>
            <th style="width:80px;">任务状态</th>
            <th style="width:80px;">支付状态</th>
            <th style="width:150px;">添加日期</th>
        </tr>

        <volist name="task_logs" id="t" key="k">
            <tr <if condition="$k gt 1">class="tr-more hidden"</if>>
            <td class="tc">{$t.no}</td>
            <td class="tl">{$t.message}</td>
            <td class="tc">{$t.real_name}</td>
            <td class="tc">{$t.task_status_name}</td>
            <td class="tc">{$t.pay_status_name}</td>
            <td class="tc">{$t.created}</td>
            </tr>
        </volist>
    </table>

</div>
<!-- 备注 -->




<!-- 订单列表 -->
	<table width="100%" cellpadding="2" cellspacing="1" class="table_form td-hidden">

		<tr id="fixed_header">
            <th><div title="订单号">订单号</div></th>
            <th><div title="快递公司">快递公司</div></th>
            <th><div title="快递单号">快递单号</div></th>
            <th><div title="收货人">收货人</div></th>
            <th><div title="收货地址">收货地址</div></th>
            <th><div title="电话">电话</div></th>
            <th><div title="产品链接">产品链接</div></th>
            <th><div title="产品名称">产品名称</div></th>
            <th><div title="关键词">关键词</div></th>
            <th><div title="购买量">购买量</div></th>
            <th><div title="刷单价">刷单价</div></th>
            <th><div title="最终价">最终价</div></th>
            <th><div title="实际总金额">实际总金额</div></th>
            <th><div title="运费">运费</div></th>
            <th><div title="评论">评论</div></th>
		</tr>
	
		<volist name="orders" id="o" >
		<tr class="<eq name="o.class" value="1">  bg-burlywood</eq>">
			<td class="tc">
                <span<eq name="o.is_exception" value="1">class="red" title="异常订单"</eq>>{$o.order_sn}</span>
			</td>
			<td>
                <volist name="shippings" id="s">
                <if condition="$s.shipping_id eq $o['shipping_id']">{$s.shipping_name}</if>
                </volist>
			</td>
			<td>
				{$o.invoice_no}
			</td>
			<td class="tc">
                {$o.consignee}
			</td>
			<td class="tl">
                {$o.address}
			</td>
			<td class="tc">
                {$o.mobile_phone}
			</td>
			<td class="tc">
				<a href="{$o.goods_url}" target="_blank">{$o.item_id}</a>
			</td>
			<td>
				<a href="{$o.goods_url}" target="_blank">{$o.goods_name}</a>
			</td>
			<td class="tc">
				{$o.keywords}
			</td>
			<td class="tc">
				{$o.goods_number}
			</td>
			<td class="tr">
				{$o.goods_amount}
			</td>
			<td class="tr">
				{$o.final_price}
			</td>
			<td class="tr">
				{$o.real_price}
			</td>
            <td>{$o.shipping_fee}</td>
			<td class="tl">
                {$o.comment}
			</td>
		</tr>
		</volist>
	</table>
	<!-- 订单列表 -->

	<div class="btn">
		<include file="Common:pager" />
    </div>